using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region Region

	/// <summary>
	/// Region object for NHibernate mapped table 'region'.
	/// </summary>
	public class Region
	{
		#region Member Variables
		
		protected int _id;
		protected string _name;
		protected int _regionorder;
		protected int _father;
        protected int _isbest;

		#endregion

		#region Constructors

		public Region() { }

		public Region( string name, int regionorder, int father ,int isbest)
		{
			this._name = name;
			this._regionorder = regionorder;
			this._father = father;
            this._isbest = isbest;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string Name
		{
			get { return _name; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Name", value, value.ToString());
				_name = value;
			}
		}

		public  virtual int Regionorder
		{
			get { return _regionorder; }
			set { _regionorder = value; }
		}

		public  virtual int Father
		{
			get { return _father; }
			set { _father = value; }
		}
        public  virtual int IsBest
		{
			get { return _isbest; }
			set { _isbest = value; }
		}

		

		#endregion
	}
	#endregion
}